import { useRouter } from "vue-router";

export function useError() {
  const router = useRouter();
  const toHome = () => {
    router.push("/");
  };
  return {
    toHome,
  };
}
